
import http from "@/utils/request";
export function balanceApi(data: any): Promise<Record<any, any>> {
    return http(`/pay/wx/withdraw/balance?amount=${data.amount}&remark=${data.remark}`,data, {
        loading: true,
        method: 'POST',
    });
}

export function getWalletInfoByOpenIdApi(): Promise<Record<any, any>> {
    return http(`/wx/acceptance/wallet/getWalletInfoByOpenId`, {
        method: 'get',
    });
}

export function withdrawalProcessingListApi(): Promise<Record<any, any>> {
    return http(`/acceptance/walletHistory/withdrawalProcessingList`, {
        method: 'get',
    });
}

/**
 * 提现记录
 */
export function withdrawalListApi(time: string): Promise<Record<any, any>> {
    return http(`/acceptance/walletHistory/withdrawalList/${time}`, {
        method: 'get',
    });
}
